|
ROTATE CAMERA
This command will rotate the camera around its X, Y and Z axis.
ROTATE CAMERA XAngle, YAngle, ZAngle
ROTATE CAMERA Camera Number, XAngle, YAngle, ZAngle
ROTATE CAMERA Camera Number, Vector
Camera Number
Integer
The camera number
XAngle
Float
The camera X axis
YAngle
Float
The camera Y axis
ZAngle
Float
The camera Z axis
This command does not return a value.
The angle values should be real numbers.
autocam on:backdrop off
make matrix 1,4000,4000,100,100
set matrix height 1,50,50,500
update matrix 1
point camera 0,0,0,0
while mouseclick()<>1
set cursor 0,0
x#=x#+mousemovey() : y#=y#+mousemovex() : z#=z#+mousemovez()
rotate camera 0,x#,y#,z#
endwhile
while mouseclick()=1 : endwhile
color backdrop rgb(128,0,0):backdrop on:delete matrix 1:autocam off
end
CAMERA Commands Menu
Index
|